<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<div class="row">
    <div class="box col-md-12">
        <div class="box-inner">
            <div class="box-header well" data-original-title="">
                <h2><i class="glyphicon glyphicon-edit"></i> Add Questions</h2>

             
            </div>
            
            <div class="box-content">
                <html:form  action="AddQuestionAction.do" method="post" onsubmit="return validate()">
                    
                    
                    <div class="form-group">
                        <label for="exampleInputEmail1">Question Description</label>
                        <!--<input type="text"   name="qdescription" class="form-control  froala-view froala-element not-msie f-basic" id="exampleInputEmail1" placeholder="Enter Question Description" >-->
                        <html:textarea property="qdescription" styleId="editor1" styleClass="ckeditor"> </html:textarea>
                        <span style="color: #91170a;font-family: serif;font-size: 14px" id="qdescription_error_txt"><html:errors property="qdescription" ></html:errors></span>

                       
                    </div>
                    
                   
                   
                    <div class="form-group">
                        <label for="exampleInputEmail1">Solution</label>

                    <html:textarea property="solution" styleId="editor1" styleClass="ckeditor"></html:textarea>
                     <span style="color: #91170a;font-family: serif;font-size: 14px" id="solution_error_txt"><html:errors property="solution" ></html:errors></span>   
                    </div>
                    
                      <div class="form-group">
                        <label for="exampleInputEmail1">Topic</label>
                        <select name="topicid">
                            
                            <c:forEach var="topicid" items="${sessionScope.li_alltopics}">
                                <option value="${topicid.id}">${topicid.name}</option>
                            </c:forEach>

                        </select>
                    </div>
                    
                     <div class="form-group">
                        <label for="exampleInputEmail1">Answer</label>
                        <select name="answer">
                            
                            <option>A</option>
                            <option>B</option>
                            <option>C</option>
                            <option>D</option>
                        </select>
                    </div>
                    
                    
                    
                    <div class="form-group">
                    <button type="submit" class="btn btn-default">Submit</button>
                </html:form>

           
        </div>
    </div>
                    
    <!--/span-->

</div><!--/row-->

    <!-- content ends -->
    </div><!--/#content.col-md-0-->
</div>